package com.yzmoney.common.action;

import com.yzmoney.common.model.JSONMsg;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 只是用于测试用
 * Created by DOVE on 2015/9/24.
 */
@Controller
@RequestMapping("/common")
public class CommonIndexAction {

    @RequestMapping("index")
    public String index(){

        return "/common/index";
    }

    @RequestMapping("indexjson")
    @ResponseBody
    public JSONMsg indexJson(){
        return new JSONMsg();
    }
}
